//index.js
//获取应用实例
var member = require("../../../data/member.js");
const app = getApp()

Page({
  data: {
    userInfo: {},
    memberOrder:[],
    memberMangement:[]
  },
  //事件处理函数
  bindViewTap: function () {
    wx.navigateTo({
      url: '../../logs/logs'
    })
  },
  // 获取member数据
  getMemberData:function(){
    this.setData({
      memberOrder: member.memberOrder,
      memberMangement: member.memberManagement
    });
  },

  onLoad: function () {
    console.log(this.data)
    wx.getUserInfo({
      success: res => {
        this.setData({
          userInfo: res.userInfo,
        })
      }
    })

    this.getMemberData();
  },
})